<template>
  <el-config-provider :locale="locale" :size="size">
    <router-view>
    </router-view>
  </el-config-provider>
</template>

<script lang="ts" setup>
import {RouterView} from 'vue-router'
import {computed} from 'vue'
import {messages} from '@/i18n'
import store from '@/stores'
import {useI18n} from 'vue-i18n'

const {t} = useI18n()
const locale = computed(() => messages[store.appStore.language].el)
const size = computed(() => store.appStore.componentSize)
</script>
